<script type="text/ng-template" id="modal.datepicker.html">
  <form>
    <div class="modal-header">
      <h3 class="modal-title">时间选择</h3>
    </div>
    <div class="modal-body">
      <div style="display:inline-block; min-height:290px;">
        <datepicker ng-model="cdate" min-date="'1960-01-01'" show-weeks="true" class="well well-sm" custom-class="getDayClass(date)"></datepicker>
      </div>
    </div>
    <div class="modal-footer">
      <button class="btn btn-success" ng-click="ok()" type="submit">确认</button>
      <button class="btn btn-default" ng-click="cancel()">取消</button>
    </div>
  </form>
</script>


<script type="text/ng-template" id="modal.htmleditor.html">
    <style>.ace_editor { height: 200px; }</style>
    <form>
      <div class="modal-header">
        <h3 class="modal-title">html编辑</h3>
      </div>
      <div class="modal-body">
        <div ui-ace="{
            useWrapMode : true,
            showGutter: false,
            theme:'twilight',
            mode: 'xml',
            firstLineNumber: 5,
            onLoad: loaded,
            onChange: changed
          }" ng-model="html">
        </div>
      </div>
      <div class="modal-footer">
        <button class="btn btn-success" ng-click="ok()" type="submit">确认</button>
        <button class="btn btn-default" ng-click="cancel()">取消</button>
      </div>
    </form>

</script>
